#include <cs50.h>
#include <stdio.h>
#define C
int main() {

	int sum[10] = {20,30,401,98,10,5,7,1000,70,200};

	int min = sum[0];
	int max = sum[9];

	for (int i=0; i<10; i++) {
		if (sum[i] < min) {
			min = sum[i];
		}
		if(sum[i] > max) {
			max = sum[i];
		}
	}
	printf("最小值：%d,最大值是：%d \n", min, max);
}
